Fix etags invocation
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 7 Sep 2009 13:26:06 +0000 (14:26 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 7 Sep 2009 13:26:06 +0000 (14:26 +0100)
Don't fail in the case where 'etags' isn't Exuberant Ctags

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/Makefile

index 6bda1e7ea9394e048acf8d2d042665daeb7c5175..0fb1c2753ff9ba83397dcd4fc20a98f56cef164a 100644 (file)
@@ -122,10 +122,10 @@ define all_sources
 endef
 
 define set_exuberant_flags
-    exuberant_flags=`$1 --version 2>/dev/null | grep -iq exuberant && \
+    exuberant_flags=`$1 --version 2>/dev/null | (grep -iq exuberant && \
        echo "-I __initdata,__exitdata,__acquires,__releases \
            -I EXPORT_SYMBOL,EXPORT_SYMBOL_GPL \
-           --extra=+f --c-kinds=+px"`
+           --extra=+f --c-kinds=+px") || true` 
 endef
 
 .PHONY: _TAGS